#ifndef PLATFORM_CONF_H
#define PLATFORM_CONF_H

#define APP_VERSION       "0.01"

#ifndef SysClk
#define SysClk  24000000
#endif

#define USE_CLOCK_EXTH     0
//#define OS_CLOCK_DIFF   0
#ifdef XTH_USE_32M
#define OS_CLOCK           (32000000)
#elif XTH_USE_8M
#define OS_CLOCK           (8000000)
#else
#define OS_CLOCK           (24000000)
#endif

#include "bsp.h"

#ifdef __cplusplus
extern "C" {
#endif

#define MIN_VOL_LEVEL   3000
#define MAX_VOL_LEVEL   3600
#define DBG_BUF_SIZE     400

/**
 *  Debug Port Settings
 */
#define DBG_GPIO                GpioPortB
#define DBG_TX_PIN              GpioPin0    /* TX: PB00 */
#define DBG_RX_PIN              GpioPin11   /* RX: PB11 */
#define DBG_AF                  GpioAf3

//#define MD_GPIO                 GpioPortA
//#define MD_TX_PIN               GpioPin9    /* TX: PA9 */
//#define MD_RX_PIN               GpioPin10   /* RX: PA10 */
//#define MD_AF                   GpioAf1

#define HL50_WAKUP_PORT         GpioPortB
#define HL50_WAKUP_PIN          GpioPin7

//#define HL50_BURST_PORT         GpioPortB
//#define HL50_BURST_PIN          GpioPin1

#define I2C0_SCL_PORT           GpioPortD
#define I2C0_SCL_PIN            GpioPin0
#define I2C0_SDA_PORT           GpioPortD
#define I2C0_SDA_PIN            GpioPin1
#define I2C0_ALTERF             GpioAf1

#define I2C1_SCL_PORT           GpioPortF
#define I2C1_SCL_PIN            GpioPin6
#define I2C1_SDA_PORT           GpioPortF
#define I2C1_SDA_PIN            GpioPin7
#define I2C1_ALTERF             GpioAf1

//#define LED1_PORT               GpioPortB
//#define LED1_PIN                GpioPin6
/****
Global Variables
****/

/****
Global Functions
****/

#if defined(__cplusplus)
}
#endif /* __cplusplus */

#endif
